package JavaSE.Class11.Demo;

public class Dog extends Animal implements IRunning,ISwimming{

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name+"Dog eat");
    }

    @Override
    public void run() {
        System.out.println(name+"Dog run");
    }

    @Override
    public void swim() {
        System.out.println(name+"Dog swim");
    }
}
